package com.zhulanhua.blogs.service;

import com.zhulanhua.blogs.domain.User;
import org.springframework.http.HttpRequest;

import java.util.Date;

public interface LoginService {

    /**
     * 验证并解析token
     * */
    Object LoginToken(HttpRequest httpRequest);

    /**
     * 用户登录
     * @param user
     * @return token
     * */
    String Login(User user);

    /**
     *  判断用户登陆时间点是否不一致，一直返回false
     * */
    boolean isLoginTime(Date date);
}
